package com.wanmait.travel.controller.errDemo;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/ErrController")
public class ErrController extends HttpServlet
{
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO 自动生成的方法存根
	}
	@Override
	public void init(ServletConfig config) throws ServletException {
		
		// TODO 自动生成的方法存根
		super.init(config);
		String dbUserName =this.getServletContext().getInitParameter("dbusername");
		System.out.println("dbUserName:"+dbUserName);
		
		
	}
}
